package com.magist.core.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.magist.core.constants.Deleted;

import java.util.Date;

/**
 * 实体类的基类，定义共用属性。
 */
public abstract class BaseEntity extends Entity {

	// ~~~~属性名称静态常量
	public static final String PROP_DELETED = "deleted";
	public static final String PROP_CREATE_TIME = "createTime";
	public static final String PROP_CREATE_BY_ID = "createById";
	public static final String PROP_MODIFY_TIME = "modifyTime";
	public static final String PROP_MODIFY_BY_ID = "modifyById";

	// ~~~~实体属性
	// 删除标识
	private String deleted = Deleted.NO_STR;
	// 创建者
	private String createById;
	// 创建时间
	private Date createTime;
	// 修改者
	private String modifyById;
	// 修改时间
	private Date modifyTime;
	
	public BaseEntity() {
	}
	
	public String getDeleted() {
		return deleted;
	}

	public void setDeleted(String deleted) {
		this.deleted = deleted;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateById() {
		return createById;
	}

	public void setCreateById(String createById) {
		this.createById = createById;
	}

	public String getModifyById() {
		return modifyById;
	}

	public void setModifyById(String modifyById) {
		this.modifyById = modifyById;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
}